package com.TestDemo.Test1;

public class ClassTest {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {


        Class<?> aClass = Class.forName("com.TestDemo.Test1.TestAbstract");

        Class<ClassTest> classTestClass = ClassTest.class;

        Object o = Class.forName("com.TestDemo.Test1.TestMethod").newInstance();
        System.out.println(o);

        TestMethod o1 = (TestMethod) Class.forName("com.TestDemo.Test1.TestMethod").newInstance();
        System.out.println(o1.b());


        System.out.println(classTestClass);

        System.out.println(aClass.getName());




    }
}
